﻿<%@ Page Language="C#" MasterPageFile="~/Shared/Masters/Form.master" AutoEventWireup="true" CodeFile="ChangePassword.aspx.cs" Inherits="Modules_System_ChangePassword" Title="密码修改" %>
<asp:Content ID="Content1" ContentPlaceHolderID="idScript" Runat="Server">
<script type="text/javascript">
        function closeForm() {
            window.returnValue="false";
            window.opener=null;
            window.close();
            return false;
        } 
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="idFormMain" Runat="Server">
<table cellpadding='2' cellspacing='1' class='ow_fim_mg' width='100%'>
        <tr>
            <td class='fi_l'>
                <asp:Label runat="server" ID="lbOldPwd" Text="旧密码:" ></asp:Label><font color='red'>*</font>
            </td>
            <td class='fi_r'>
                        <asp:TextBox ID='txtOldPassword' runat='server' Width='150px' MaxLength='50' TextMode="Password" ></asp:TextBox>
                <asp:RequiredFieldValidator ID="reqName" runat="server" ControlToValidate="txtOldPassword"
                    Display="Dynamic" ErrorMessage="旧密码不能为空" ValidationGroup="oss" >*</asp:RequiredFieldValidator></td>            
        </tr>
        <tr>
            <td class='fi_l'>
                <asp:Label runat="server" ID="lbNewpwd" Text="新密码:" ></asp:Label><font color='red'>*</font>
            </td>
            <td class='fi_r'>
                        <asp:TextBox ID='txtNewPassword' runat='server' Width='150px' MaxLength='50' TextMode="Password" ></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtNewPassword"
                    Display="Dynamic" ErrorMessage="新密码不能为空" ValidationGroup="oss" >*</asp:RequiredFieldValidator></td>            
        </tr>
        <tr>
            <td class='fi_l'>
                <asp:Label runat="server" ID="lbConfirm" Text="确认新密码:" ></asp:Label><font color='red'>*</font>
            </td>
            <td class='fi_r'>
                        <asp:TextBox ID='txtConfimPassword' runat='server' Width='150px' MaxLength='50' TextMode="Password" ></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtConfimPassword"
                    Display="Dynamic" ErrorMessage="确认密码不能为空" ValidationGroup="oss" >*</asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtNewPassword"
                    ControlToValidate="txtConfimPassword" ErrorMessage="两次密码不一致" ValidationGroup="oss" >*</asp:CompareValidator></td>            
        </tr>
</table>
<asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
        ShowSummary="False" ValidationGroup="oss" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="idFormButton" Runat="Server">
<asp:Button ID="btnSaven" runat="server" Text="保存" ValidationGroup="oss" OnClick="btnSave_Click" />
    <asp:Button ID="CloseButton" runat="server" Text="关闭" OnClientClick="return closeForm();" />
</asp:Content>

